﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_BCDoanhThu : System.Web.UI.Page
{
    protected void checkAlreadyLogin()
    {
        if (Session["UserID"].ToString() == null)//Session["UserType"].ToString() != "QuanTri" || 
        {
            Response.Redirect("Login.aspx");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            checkAlreadyLogin();
        }
    }
    protected void btnXemBC_Click(object sender, EventArgs e)
    {
        if(rdDoThi.Checked)
        {
            Response.Redirect("BaoCaoDoanhThuBanHang.aspx?nam=" + txtNam.Text);
        }
        if(rdDangBang.Checked)
        {
            Response.Redirect("BaoCaoDoanhThuBang.aspx?nam=" + txtNam.Text);
        }
        
    }
}